package com.service.impl;

import com.domain.ArticleType;
import com.mapper.ArticleTypeMapper;
import com.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("ArticleTypeService")
public class ArticleTypeServiceImpl implements ArticleTypeService {

    @Autowired
    private ArticleTypeMapper articleTypeMapper;

    @Override
    public List<ArticleType> selectAll() {
        return articleTypeMapper.selectAll();
    }

    @Override
    public void insert(ArticleType articleType) {
        articleTypeMapper.insert(articleType);
    }
}
